package com.swt.service.impl.S_impl;

import com.swt.dao.S_dao.GetUserDao;
import com.swt.domain.Image;
import com.swt.domain.User;
import com.swt.service.S_service.GetUserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class GetUserServiceImpl implements GetUserService {
    @Resource
    private GetUserDao getUserDao;


    @Override
    public User getUserById(int id) {
        return getUserDao.getUserById(id);
    }

    @Override
    public List<Image> getImage() {
        return getUserDao.getImage();
    }
}
